package com.ruoyi.framework.web.error;

import net.dreamlu.mica.core.result.IResultCode;

/**
 * 自定义异常
 *
 * @author dyun
 */
public class CustomCode implements IResultCode {
    private Integer code;
    private String msg;

    public CustomCode(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
